import { defineStore } from 'pinia';
import { ref,computed } from 'vue';


export const windowInfoStore = defineStore('windowInfo',()=>{
	const windowInfo = ref<UniApp.GetWindowInfoResult|null>(null);
	
	const safeAreaInsets = computed(()=>windowInfo.value?.safeAreaInsets)
	return {
		windowInfo,
		safeAreaInsets
	}
});